// app.js
import api from "./apis/authorization";

App({
  async onLaunch(options) {
    await api.updateLoginStatus();
    wx.loadFontFace({
      family: 'Ping Fang SC',
      source: '/assets/fonts/PingFang-SC.woff2',
      global: true,
      success: function (res) {
        console.log('Font loaded successfully with weight 400');
      },
      fail: function (res) {
        console.log('Failed to load font with weight 400');
      },
    });
  },
  globalData: {
    token: null
  }
})
